/* 公共的样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;

    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 上方导航栏 */
.nav {
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%), radial-gradient(at top center, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.40) 120%) #989898; background-blend-mode: multiply,multiply;
    display: flex;
    justify-content: left;
    align-items: center;
}


/* 导航栏中的占位器 */
.nav .spacer {
    width: 82%;
}

/* 导航栏中的按钮 */
.nav a {
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
}


.container {
    width: 100%;
    height: calc(100% - 50px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.nav ul{
    list-style: none;
}

.menu {
    width: 70%;
    height: 57px;
    margin: 100px auto;
}
.menu li{
    background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%), radial-gradient(at top center, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.40) 120%) #989898; background-blend-mode: multiply,multiply;
    min-width: 160px;
}
.menu a{
    
    display: block;
    color: white;
    font-family: 'Lucida Console';
    font-size: 16px;
    line-height: 54px;
    padding: 0 25px;
    text-decoration: none;
    text-transform: uppercase;
}
.menu > li{
    position: relative;
    float: left;
}
.menu > li:first-child {
    border-radius: 5px 0 0;
}

.submenu {
    max-height: 0;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 0;
    

}
.submenu li{
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity .4s,transform .5s;
}
.menu li:hover{
    background-color: #1c1c1c;
    border-bottom: 2px solid #222;
    border-top: 2px solid #1b1b1b;
}
.menu li:hover > a{
    border-radius: 5px 0 0 0;
    background-image: linear-gradient(180deg, #2af598 0%, #009efd 100%);    color: #c4302b;
}

.menu .submenu li:hover a{
    border-left: 3px solid #454545;
    border-radius: 0;
    color: #fff;
}
.menu > li:hover .submenu {
    min-height: 700px;
    z-index: 10;
}
.menu > li:hover .submenu li{
    transform: rotateY(0deg);
    opacity: 1;
}

.container{
    width: 100%;
    height: calc(100% - 50px);

    display: flex;
    align-items: center;
    justify-content: center;

}

.screen{
    height: 65%;
    width: 700px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 30px;
    
      /* 添加以下属性 */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 100px;
    margin-top: 10px;
    
}
/* 展示用户信息的卡片 */
.card {
    height: 65%;
    width: 700px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 30px;
    
      /* 添加以下属性 */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 100px;
    margin-top: 10px;
}

/* 用户头像 */
.card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
}


#match-button {
    width: 400px;
    height: 50px;
    font-size: 20px;
    background-color: orange;
    color: white;
    border-radius: 10px;
    border: none;
    outline: none;

    text-align: center;
    line-height: 50px;
    margin-top: 20px;
    margin-left: 250px;
}

#submit:active {
    background-color: rgb(86, 52, 52);
}

.card_gobang {
    display: flex;
    align-items: center;
    justify-content: center;
}
.card_gobang h3{
    width: 150px;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    outline: none;
    text-indent: 10px;
    margin-left: 70px;
    color: #830f0f;
    
}

.card_gobang span{
    width: 150px;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    outline: none;
    text-indent: 10px; 
    color: #400606;

}